#!/bin/sh

#读取ID
#./adv7280a.elf rd 0x42 0x11
# 0x42,0x11,0x43 

#----------------------------------------------------------------
#//adv7280a 测试命令
#----------------------------------------------------------------
usleep  10000
./adv7280a.elf wr 0x42 0x0F 0x80 
./adv7280a.elf wr 0x56 0x17 0x02 
usleep  10000
./adv7280a.elf wr 0x42 0x0F 0x00 
./adv7280a.elf wr 0x42 0x52 0xCD 
./adv7280a.elf wr 0x42 0x00 0x07 
./adv7280a.elf wr 0x42 0x0C 0x37 
./adv7280a.elf wr 0x42 0x02 0x54 
./adv7280a.elf wr 0x42 0x14 0x11 
./adv7280a.elf wr 0x42 0x80 0x51 
./adv7280a.elf wr 0x42 0x81 0x51 
./adv7280a.elf wr 0x42 0x82 0x68 
./adv7280a.elf wr 0x42 0x17 0x41 
./adv7280a.elf wr 0x42 0x03 0x0C 
./adv7280a.elf wr 0x42 0x04 0x07 
./adv7280a.elf wr 0x42 0x13 0x00 
./adv7280a.elf wr 0x42 0x1D 0x40 
./adv7280a.elf wr 0x56 0x00 0x1C 
./adv7280a.elf wr 0x56 0x01 0x00 
./adv7280a.elf wr 0x56 0x80 0x10 
./adv7280a.elf wr 0x56 0x82 0xC9 
./adv7280a.elf wr 0x56 0x87 0x20 
./adv7280a.elf wr 0x56 0x88 0x00 



#----------------------------------------------------------------
#//adv7280a 驱动初始化表
#----------------------------------------------------------------
#static const uint8_t _adv7280aInitTable[ADV7280A_TABLE_SIZE][4] =
#{
#	{0x42, 0x0F, 0x80, 0},
#	//usleep 10ms
#	{0x42, 0x0F, 0x00, 0},
#	{0x42, 0x52, 0xCD, 0},
#	{0x42, 0x00, 0x00, 0},
#	{0x42, 0x0E, 0x80, 0},
#	{0x42, 0x9C, 0x00, 0},
#	{0x42, 0x9C, 0xFF, 0},
#	{0x42, 0x0E, 0x00, 0},
#	{0x42, 0x80, 0x51, 0},
#	{0x42, 0x81, 0x51, 0},
#	{0x42, 0x82, 0x68, 0},
#	{0x42, 0x6a, 0x03, 0},
#	{0x42, 0x6B, 0x91, 0},
#	{0x42, 0x17, 0x41, 0},
#	{0x42, 0x03, 0x0C, 0},
#	{0x42, 0x04, 0x07, 0},
#	{0x42, 0x13, 0x00, 0},
#	{0x42, 0x1D, 0x40, 0},
#	{0x42, 0xFD, 0x84, 0},
#	{0x84, 0xA3, 0x00, 0},
#	{0x84, 0x5B, 0x00, 0},
#	{0x84, 0x55, 0x80, 0},
#};
#

usleep  10000
./adv7280a.elf wr 0x42 0x0F 0x80
usleep  10000
./adv7280a.elf wr 0x42 0x0F 0x00
./adv7280a.elf wr 0x42 0x52 0xCD
./adv7280a.elf wr 0x42 0x00 0x00
./adv7280a.elf wr 0x42 0x0E 0x80
./adv7280a.elf wr 0x42 0x9C 0x00
./adv7280a.elf wr 0x42 0x9C 0xFF
./adv7280a.elf wr 0x42 0x0E 0x00
./adv7280a.elf wr 0x42 0x80 0x51
./adv7280a.elf wr 0x42 0x81 0x51
./adv7280a.elf wr 0x42 0x82 0x68
./adv7280a.elf wr 0x42 0x6a 0x03
./adv7280a.elf wr 0x42 0x6B 0x91
./adv7280a.elf wr 0x42 0x17 0x41
./adv7280a.elf wr 0x42 0x03 0x0C
./adv7280a.elf wr 0x42 0x04 0x07
./adv7280a.elf wr 0x42 0x13 0x00
./adv7280a.elf wr 0x42 0x1D 0x40
./adv7280a.elf wr 0x42 0xFD 0x84
./adv7280a.elf wr 0x84 0xA3 0x00
./adv7280a.elf wr 0x84 0x5B 0x00
./adv7280a.elf wr 0x84 0x55 0x80



